
<div class="container-fluid am-cf">
	<div class="row">
		<div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
			<div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 分享 <!-- <small>Amaze UI</small> --></div>
			<!-- <p class="page-header-description">Amaze UI 有许多不同的表格可用。</p> -->
		</div>
		<div class="am-u-lg-3 tpl-index-settings-button">
			<a href="javascript:history.back(-1)">
				<button type="button" class="page-header-button">返回</button>
			</a>
		</div>
	</div>
</div>
<div class="row-content am-cf">
	<div class="row">
		<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
			<div class="widget am-cf">
				<div class="widget-head am-cf">
					<div class="widget-title am-fl">分享 </div>
				</div>
				<div class="widget-body  am-fr">
					<div class="am-u-sm-12">
						<form class="am-form tpl-form-line-form">
						
							<div class="am-form-group"style="text-align:center">
								<img  class="am-img-thumbnail" id="code" src="">
							</div>
							<div class="am-form-group" style="text-align:center">
									<input class="am-form-group" value="{$invitecode}"id="biao1" style="color: #000000;width: 20%; text-align: center;" />
							</div>
							<input type="hidden" id="invitecode" name="" value="{$invitecode}" >
							<div class="am-form-group"style="text-align:center">
								<button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success " onClick="copyUrl2()" value="点击复制代码" >复制地址</button>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
</div>
</div>

	<script  type="text/javascript">
			function copyUrl2()
			{
			var Url2=document.getElementById("biao1");
			Url2.select(); // 选择对象
			document.execCommand("Copy"); // 执行浏览器复制命令
			alert("已复制好，可贴粘。");
			}
			var invitecode=document.getElementById('invitecode').value;
			var Url='https://www.faltd.net/mobile#/pages/user/loginInterface?weicode='+invitecode;
			var imgsrc=  'http://qr.liantu.com/api.php?text='+escape(Url);
		   
			document.getElementById("code").src=imgsrc;
		</script>